<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心|饿9定</title>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/tablecreate/modal.js"></script>
<style type="text/css">
*{
font-family: '微软雅黑';
}
table tr td{
/* border: #bdbdbd 1px solid; */
}
</style>
<script type="text/javascript">
function upload(url){
	  // alert(id);
		//alert(adminId);
	    $('#userImage').modal({
	        keyboard: false,
	        show:true,
	        remote:url
	        });

	$("#userImage").on("hidden", function() {
	    $(this).removeData("modal");
	});
	}
</script>
<sb:head/>
</head>
<body>
<div style="width: 750px;height: 520px;margin: 0px auto;">
<div style="width: 750px;height: 40px;border-bottom: 1px solid #e8e8e8;">
<div style="font-size:18px;width:100px;height:30px;;margin-top:15px;margin-left: 20px; ">个人中心</div>
</div>
<div style="width: 700px;height: 210px;margin-top:10px;margin-left:20px;  background-color: #f2f2f2; border: 1px solid #bdbdbd; ">
<table>
<tr height="30px;" >
<td width="100px;" rowspan="3">
<s:if test="user.userImage==null">
 <img alt="" onclick="upload('user_editUserImage?userId=40283f814d618534014d6191767a0000')" width="100px" height="90px;"  src="<%=basePath%>image/touxiang.png"> 
 </s:if>
 <s:else>
 <img alt="" onclick="upload('user_editUserImage?userId=40283f814d618534014d6191767a0000')" width="100px" height="90px;"  src="<%=basePath%>upload/<s:property value='user.userImage'/>"> 
 </s:else>
 </td>
<td width="300px;">昵称：<s:property value="user.userName"/></td>
<td width="300px;">账户余额：0元 </td>
</tr>
<tr height="30px;">
<td width="300px;">真实姓名：<s:property value="user.realName"/> </td>
<td width="300px;"><input type="button" value="充值" style="width:150px;height: 30px;background-color: #fdef83;"/> </td>
</tr>
<tr height="30px;">
<td width="300px;">联系电话：<s:property value="user.userPhone"/>&nbsp;&nbsp;<input type="button" value="更改" onclick="edit('user_phoneInfo?userId=40283f814d618534014d6191767a0000')" style="width: 50px;height: 23px;"/></td>
<td width="300px;"><span class="icon-list"></span>完成订单：<span style="color:blue">0</span>张（一个月内完成）</td>
</tr>
<tr height="30px;">
<td width="100px;" align="right">地 址：</td>
<td width="300px;" colspan="2"><s:property value="user.userAddress"/>&nbsp;&nbsp;<input type="button" value="更改" onclick="edit('user_addressInfo?userId=40283f814d618534014d6191767a0000')" style="width: 50px;height: 23px;"/></td>
</tr>
<tr height="30px;">
<td width="100px;" align="right"><img alt="" width="25px;" height="25px" src="<%=basePath%>image/jifen.png">积分：</td>
<td width="300px;" colspan="2"><s:property value="user.userPoints"/>点
<s:if test="user.type==0">
<a href="user_updateStatus?status=1&userId=40283f814d618534014d6191767a0000 ">申请会员</a> 
</s:if>
</td>
</tr>
<tr height="30px;">
<td width="100px;" align="right"><img alt="" width="25px;" height="25px" src="<%=basePath%>image/shoucang.png">收藏：</td>
<td width="300px;" colspan="2"><span style="color:blue">0</span>家餐厅<span style="color:blue">0</span>份美食</td>
</tr>
</table>
</div>
<div style="width: 700px;height: 160px;margin-top:20px;margin-left:20px;  background-color: #f2f2f2; border: 1px solid #bdbdbd; ">
<div class="row-fluid">
		<div class="span12">
			<div class="tabbable" id="tabs-946904">
				<ul class="nav nav-tabs">
					<li class="active">
						<a href="#panel-835190" data-toggle="tab">最近饿单</a>
					</li>
					<li>
						<a href="#panel-457825" data-toggle="tab">最近在线交易</a>
					</li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane active" id="panel-835190">
						<p>
							你还没有下过单哦，现在就去<a href="">订餐</a>吧～
						</p>
					</div>
					<div class="tab-pane" id="panel-457825">
						<p>
							您还没有在线支付的订单哦～
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</div>
</body>
<%@ include file="/page/common/modal.jsp"%>
</html>